﻿using VisualWip.Core;
using VisualWip.Core.Columns;

namespace VisualWip.PresentationModel.WorkItem
{
    public static class WorkItemViewModelFactory
    {
        public static WorkItemViewModel Create(Slot slot, WorkItemsColumnBase setting)
        {
            var noWorkItem = slot.WorkItem as NoWorkItem;
            if (noWorkItem != null)
            {
                return new NoWorkItemViewModel(noWorkItem,setting);
            }


            return new WorkItemViewModel(slot.WorkItem,setting);
        }
    }
}